projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9982be8
)
Make main_thread_id private
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 24 Dec 2017 19:29:36 +0000
(11:29 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 24 Dec 2017 19:30:20 +0000
(11:30 -0800)
* src/sysdep.c (main_thread_id) [FORWARD_SIGNAL_TO_MAIN_THREAD]:
Now static.
src/sysdep.c
patch
|
blob
|
history
src/syssignal.h
patch
|
blob
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index e223a67787ded30d7ce2d14664683023e34f6d99..9522aa4b04b87a4b7e8797a90a9041ff13bb5106 100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-1671,7
+1671,7
@@
emacs_sigaction_init (struct sigaction *action, signal_handler_t handler)
}
#ifdef FORWARD_SIGNAL_TO_MAIN_THREAD
-pthread_t main_thread_id;
+
static
pthread_t main_thread_id;
#endif
/* SIG has arrived at the current process. Deliver it to the main
diff --git
a/src/syssignal.h
b/src/syssignal.h
index 61e1c5f60e8ebf5ee9be7a10ebd89c3fe1990e75..b43a2562e3d335da9a16ddc95bcf24516829da64 100644
(file)
--- a/
src/syssignal.h
+++ b/
src/syssignal.h
@@
-32,7
+32,6
@@
extern void unblock_tty_out_signal (sigset_t const *);
#ifdef HAVE_PTHREAD
#include <pthread.h>
-extern pthread_t main_thread_id;
/* If defined, asynchronous signals delivered to a non-main thread are
forwarded to the main thread. */
#define FORWARD_SIGNAL_TO_MAIN_THREAD